# -*- coding: utf-8 -*-

'''
    date:2017-05-31 hqk
    
'''

import redis
import json
import time
import requests, urllib
import os
from config.setting import SPIDERSENSUS_REDIS, RESTINFO_REDIS,RESTNEW, RESTUPDATE, PROXIE_UPDATETIME_KEY, RESTPICKEY, RESTINFOKEY, RESTNEWADDINFO, RESTNEWADDPIC, RESTUPDATEINFO, RESTUPDATEPIC, REST_LIST_KEY, REST_SET_KEY, RESTNEWADDREVIEW, RESTUPDATEREVIEW, RESTBILLBOADKEY, RESTREVIEWKEY, RESTCLOSE
from dianp_census import DianpCensus
import sys  
reload(sys)  
sys.setdefaultencoding('utf8')


COMMITBASEURL = ''
import time
xx = DianpCensus() 
while True:
    xx.commit_update_rest_review()
    xx.commit_update_rest_info()
    xx.commit_update_rest_pic()
    xx.commit_newadd_rest_info()
    xx.commit_newadd_rest_pic()
    xx.commit_newadd_rest_review()
    time.sleep(10)
